﻿using Jizsoft.Bases.Web.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Web.Http;

namespace Jizsoft.Bases.Web.ApiControllers
{
    public class UserController : ApiController
    {
        [HttpGet]
        public ApiResult List()
        {
            List<User> items = new List<User>();
            for(int index = 0; index < 10; index++)
            {
                items.Add(new User()
                {
                    Name = "name"+ index.ToString(),
                    Account = "name" + index.ToString(),
                     IsEnabled = true
                });
            }
            return new ApiResult(new PagedList<User>(0, 15, 10, items));
        }
    }
}
